<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <include file="Public/meta" />
    <style type="text/css">
        .marginleft {
            margin-left: 10px;
            float: right;
        }
    </style>
</head>
<body>
    <div class="info-center">
        <div class="page-header">
            <div class="pull-left">
                <h4>会员列表&nbsp;&nbsp;</h4>      
            </div>

              <form action="{:U('Admin/User/index')}" method="post">
                <a href="{:U('user/index')}">
                    <span class="pull-left margin-top glyphicon glyphicon-refresh" style="margin-top: 22px;font-size: 18px;padding:0 10px;"></span>
                </a> 
                <select class="form-control pull-left margin-top selects" name="diff">
                  <option>分类</option>
                  <option value="1">个人</option>
                  <option value="0">企业</option>
                </select>
                <input class="form-control pull-left margin-top marginleft" type="text"  value='{$Think.post.keyword}' placeholder="请输入搜索内容" name="keyword" style="width: 200px;"> 
                <input type="submit" class="btn btn-primary  pull-left  margin-top marginleft" value="搜索">
              </form>
              <a href="{:U('user/add')}"  class="btn btn-primary pull-right margin-top">添加会员</a>
        </div>
        <div class="clearfix"></div>
        <div class="table-margin">
            <table class="table table-hover table-header" id="list-table">
                <thead>
                    <tr>
                        <td>编号</td>
                        <td>用户名</td>
                        <td>上级</td>
                        <td>申请单位</td>
                        <td>真实姓名</td>
                        <td>手机号码</td>
                        <td>电子邮件</td>
                        <td>余额</td>
                        <td>分类</td>
                        <td>注册时间</td>
                        <td class="w10">操作</td>
                    </tr>
                </thead>
<!--                 <tbody>
                    <tr>
                        <td>1</td>
                        <td>
                           admin
                        </td>
                        <td>
                            <if condition="$vo.status eq 1">
                                允许登陆
                            <else/>
                                <font color="red">禁止登陆</font>
                            </if>
                        </td>
                        <td>是</td>
                        <td>
                            <a href="{:U('user/edit',array('id'=>$vo['admin_id']))}"> 查看</a>
                        </td>
                    </tr> -->
                    <foreach name="list" item="vo">
                        <tr>
                            <td>{$vo['id']}</td>
                            <td>
                                {$vo['username']}
                            </td>
                            <td>
                                {$vo.shangji}
                            </td>
                            <td>
                                {$vo['comname']}
                            </td>
                            <td>
                                {$vo['truename']}
                            </td>
                            <td>
                                {$vo['phone']}
                            </td>
                            <td>
                                {$vo['email']}
                            </td>
                            <td>
                                {$vo['money']}
                            </td>
                            <td>
                                <if condition="$vo.diff eq 1">
                                    个人
                                <else/>
                                    <font color="red">企业</font>
                                </if>
                            </td>
                            <td>
                                {$vo.addtime|date="Y--m-d H:i:s",###}
                            </td>
                            <td>
                                <a href="{:U('user/del',array('id'=>$vo['id']))}"><button type="button" class="btn btn-danger btn-xs">删除</button></a>
                                <a href="{:U('user/edit',array('id'=>$vo['id']))}"><button type="button" class="btn btn-primary btn-xs">修改</button></a>
                            </td>
                        </tr>
                    </foreach>
                </tbody>
            </table>
            <div class="pageers">
                <ul>
                   {$show}
                </ul>
            </div>
        </div>
    </div> 
    <script type="text/javascript" src="__ADMIN_JS__/common.js"></script>
</body>
</html>
